package com.training.content.domain;

import com.training.common.annotation.Excel;
import com.training.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 试卷题目对象 exam_subject
 * 
 * @author training
 * @date 2021-10-25
 */
public class ExamSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long subjectId;

    /** 题目名称 */
    @Excel(name = "题目名称")
    private String subjectName;

    /** 所属试卷Id */
    @Excel(name = "所属试卷Id")
    private Long examId;

    /** 题目类型 0-单选 1-多选 2-判断 */
    @Excel(name = "题目类型 0-单选 1-多选 2-判断")
    private Long subjectType;

    /** 分数 */
    @Excel(name = "分数")
    private Long score;

    /** 正确答案 多个英文逗号分隔 */
    @Excel(name = "正确答案 多个英文逗号分隔")
    private String answer;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String analysis;

    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setSubjectName(String subjectName) 
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName() 
    {
        return subjectName;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setSubjectType(Long subjectType) 
    {
        this.subjectType = subjectType;
    }

    public Long getSubjectType() 
    {
        return subjectType;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setAnalysis(String analysis) 
    {
        this.analysis = analysis;
    }

    public String getAnalysis() 
    {
        return analysis;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("subjectId", getSubjectId())
            .append("subjectName", getSubjectName())
            .append("examId", getExamId())
            .append("subjectType", getSubjectType())
            .append("score", getScore())
            .append("answer", getAnswer())
            .append("analysis", getAnalysis())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
